package Task31;

import java.util.HashMap;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            // 键盘输入
            String str = scanner.nextLine();
            // 密文
            String str1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            // 明文
            String str2 = "VWXYZABCDEFGHIJKLMNOPQRSTU";
            char[] ciphertext = str1.toCharArray();
            char[] cleartext = str2.toCharArray();
            // 利用hash来做
            HashMap<Character,Character> hashMap = new HashMap<>();
            for (int i = 0; i < str2.length(); i++) {
                    hashMap.put(str1.charAt(i), str2.charAt(i));
            }
            StringBuilder stringBuilder = new StringBuilder();
            for (int i = 0; i < str.length(); i++) {
                if(str.charAt(i) == ' '){
                    stringBuilder.append(' ');
//                    continue;
                }
                if (str.charAt(i) != ' '){
                    stringBuilder.append(hashMap.get(str.charAt(i)));
                }

            }
            System.out.println(stringBuilder.toString());
        }
    }
}
